<template>
  <div class="item">
    <img :src="item.pic" alt="" />
    <h5>{{ item.title }}</h5>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from "vuex";
import { useRouter, useRoute } from "vue-router";
export default {
  props: {
    item: Object,
  },
  setup(props, ctx) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const data = reactive({});
    return { ...toRefs(data) };
  },
};
</script>

<style lang="scss">
.item {
  margin-top: 20px;
  img {
    width: 100%;
    height: 200px;
  }
}
</style>
